Telegram Group & Telegram Channel
🍳 Задача по Python #29

Описание

Напишите функцию, которая преобразует введенное пользователем число в бинарное представление и подсчитывает количество единиц в этом числе.

Примеры
func(10) # [1010, 2]
func(25) # [11001, 3]

Свой вариант решения в комментарии 💭
Кодом делиться через pastebin.org или repl.it.

#задачи



tg-me.com/pythonturboru/510
Create:
Last Update:

🍳 Задача по Python #29

Описание

Напишите функцию, которая преобразует введенное пользователем число в бинарное представление и подсчитывает количество единиц в этом числе.

Примеры

func(10) # [1010, 2]
func(25) # [11001, 3]

Свой вариант решения в комментарии 💭
Кодом делиться через pastebin.org или repl.it.

#задачи

BY Python Turbo. Уютное сообщество Python разработчиков.




Share with your friend now:
tg-me.com/pythonturboru/510

View MORE
Open in Telegram


Python Turbo Уютное сообщество Python разработчиков Telegram | DID YOU KNOW?

Date: |

For some time, Mr. Durov and a few dozen staffers had no fixed headquarters, but rather traveled the world, setting up shop in one city after another, he told the Journal in 2016. The company now has its operational base in Dubai, though it says it doesn’t keep servers there.Mr. Durov maintains a yearslong friendship from his VK days with actor and tech investor Jared Leto, with whom he shares an ascetic lifestyle that eschews meat and alcohol.

If riding a bucking bronco is your idea of fun, you’re going to love what the stock market has in store. Consider this past week’s ride a preview.The week’s action didn’t look like much, if you didn’t know better. The Dow Jones Industrial Average rose 213.12 points or 0.6%, while the S&P 500 advanced 0.5%, and the Nasdaq Composite ended little changed.

Python Turbo Уютное сообщество Python разработчиков from de


Telegram Python Turbo. Уютное сообщество Python разработчиков.
FROM USA